// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config

// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`

module.exports = {
    port: 3001,
    siteName: "HarwordLiu's Blog",
    siteDescription: 'nothing to say',
    titleTemplate: '%s - HarwordLiu',
    pathPrefix: '',
    plugins: [
        {
            use: '@gridsome/source-filesystem',
            options: {
                path: './data/home/**/*.md',
                typeName: 'HomeArticle',
                resolveAbsolutePaths: true,
            },
        },
        {
            use: '@gridsome/source-filesystem',
            options: {
                path: './data/journal/**/*.md',
                typeName: 'Journal',
                resolveAbsolutePaths: true,
            },
        },
    ],
    templates: {
        HomeArticle: [
            {
                path: '/article/:id',
                component: './src/templates/Article.vue',
            },
        ],
        Journal: [
            {
                path: '/journal/:id',
                component: './src/templates/Journal.vue',
            },
        ],
    },
};
